package com.donggua.aichebao.commonui.Dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import com.donggua.aichebao.commonui.R;

/**
 * Created by fzh on 2017/8/17.
 */

public class DGDialogBase extends Dialog {
    public DGDialogBase(Context context, int themeResId) {
        super(context, themeResId);
    }
    public DGDialogBase(Context context) {
        super(context);
    }
    public void showDialog(){
        if(!isShowing()){
            show();
        }
    }

    public void closeDialog(){
        if(isShowing()){
            dismiss();
        }
    }
}
